package com.uduemc.biso.core.extities.center;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Table(name = "host")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString()
public class Host implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;

	@Column(name = "agent_id")
	private Long agentId;

	@Column(name = "type_id")
	private Long typeId;

	@Column(name = "user_id")
	private Long userId;

	@Column(name = "server_id")
	private Long serverId;

	@Column(name = "name")
	private String name;

	@Column(name = "random_code")
	private String randomCode;

	@Column(name = "status")
	private Short status;

	@Column(name = "review")
	private Short review;

	@Column(name = "trial")
	private Short trial;

	@Column(name = "create_at", insertable = false, updatable = false)
	private Date createAt;

	@Column(name = "end_at")
	private Date endAt;
}
